//package com.itheima.consumer.client;
//
//import com.itheima.consumer.client.fallback.UserFeignClientFallback;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import java.util.Map;
//// @FeignClient 代表 当前是一个feign客户端
//// value = user-service  代表这个客户端要调用的微服务名称 user-service
//@FeignClient(value = "user-service",fallback = UserFeignClientFallback.class)
//public interface UserFeignClient {
//    @GetMapping("/user/{id}")
//    public Map findById(@PathVariable("id") String id);
//}
